Next | Prev | Up | Top | Contents | Index

Generating a Debugging Kernel

Run the autoconfig command to generate a new kernel that will reflect the changes made in irix.sm. The result is a new kernel file, /unix.install, that will be renamed to /unix and used when the system is booted. This kernel can support idbg but is not yet ready for standalong debugging with symmon.

The setsym command copies the symbol table from a kernel file and stores it as data within the kernel, so that symmon can find it. After autoconfig has created /unix.install, apply the setsym command to it, as follows:

#setsym /unix.install

If this command returns an error message about "symbol table overflow," it means you have neglected to activate the debugging LDOPTS statement in /var/sysgen/irix.sm.

Tip: You can use setsym with the -d option to generate a list of all symbols in the kernel being modified. The list is very long; direct it to a file for later reference. At this time, you may wish to create a link to the current, nondebugging kernel so you can retrieve it easily. You can also return to a nondebugging kernel by restoring the original irix.sm file and running autoconfig again.


Next | Prev | Up | Top | Contents | Index